﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000913 RID: 2323
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HHCFGIJPHLC : IMessage<HHCFGIJPHLC>, IMessage, IEquatable<HHCFGIJPHLC>, IDeepCloneable<HHCFGIJPHLC>, IBufferMessage
	{
		// Token: 0x17001D5E RID: 7518
		// (get) Token: 0x0600681C RID: 26652 RVA: 0x001171DB File Offset: 0x001153DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HHCFGIJPHLC> Parser
		{
			get
			{
				return HHCFGIJPHLC._parser;
			}
		}

		// Token: 0x17001D5F RID: 7519
		// (get) Token: 0x0600681D RID: 26653 RVA: 0x001171E2 File Offset: 0x001153E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HHCFGIJPHLCReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001D60 RID: 7520
		// (get) Token: 0x0600681E RID: 26654 RVA: 0x001171F4 File Offset: 0x001153F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HHCFGIJPHLC.Descriptor;
			}
		}

		// Token: 0x0600681F RID: 26655 RVA: 0x001171FB File Offset: 0x001153FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HHCFGIJPHLC()
		{
		}

		// Token: 0x06006820 RID: 26656 RVA: 0x00117210 File Offset: 0x00115410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HHCFGIJPHLC(HHCFGIJPHLC other) : this()
		{
			this.progress_ = other.progress_;
			this.pJMAHBFKHLB_ = other.pJMAHBFKHLB_.Clone();
			this.areaGlobalId_ = other.areaGlobalId_;
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006821 RID: 26657 RVA: 0x00117269 File Offset: 0x00115469
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HHCFGIJPHLC Clone()
		{
			return new HHCFGIJPHLC(this);
		}

		// Token: 0x17001D61 RID: 7521
		// (get) Token: 0x06006822 RID: 26658 RVA: 0x00117271 File Offset: 0x00115471
		// (set) Token: 0x06006823 RID: 26659 RVA: 0x00117279 File Offset: 0x00115479
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x17001D62 RID: 7522
		// (get) Token: 0x06006824 RID: 26660 RVA: 0x00117282 File Offset: 0x00115482
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<BuildAreaStep> PJMAHBFKHLB
		{
			get
			{
				return this.pJMAHBFKHLB_;
			}
		}

		// Token: 0x17001D63 RID: 7523
		// (get) Token: 0x06006825 RID: 26661 RVA: 0x0011728A File Offset: 0x0011548A
		// (set) Token: 0x06006826 RID: 26662 RVA: 0x00117292 File Offset: 0x00115492
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaGlobalId
		{
			get
			{
				return this.areaGlobalId_;
			}
			set
			{
				this.areaGlobalId_ = value;
			}
		}

		// Token: 0x17001D64 RID: 7524
		// (get) Token: 0x06006827 RID: 26663 RVA: 0x0011729B File Offset: 0x0011549B
		// (set) Token: 0x06006828 RID: 26664 RVA: 0x001172A3 File Offset: 0x001154A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x06006829 RID: 26665 RVA: 0x001172AC File Offset: 0x001154AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HHCFGIJPHLC);
		}

		// Token: 0x0600682A RID: 26666 RVA: 0x001172BC File Offset: 0x001154BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HHCFGIJPHLC other)
		{
			return other != null && (other == this || (this.Progress == other.Progress && this.pJMAHBFKHLB_.Equals(other.pJMAHBFKHLB_) && this.AreaGlobalId == other.AreaGlobalId && this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600682B RID: 26667 RVA: 0x0011732C File Offset: 0x0011552C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			num ^= this.pJMAHBFKHLB_.GetHashCode();
			if (this.AreaGlobalId != 0U)
			{
				num ^= this.AreaGlobalId.GetHashCode();
			}
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600682C RID: 26668 RVA: 0x001173AB File Offset: 0x001155AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600682D RID: 26669 RVA: 0x001173B3 File Offset: 0x001155B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600682E RID: 26670 RVA: 0x001173BC File Offset: 0x001155BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Progress != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Progress);
			}
			this.pJMAHBFKHLB_.WriteTo(ref output, HHCFGIJPHLC._repeated_pJMAHBFKHLB_codec);
			if (this.AreaGlobalId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AreaGlobalId);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600682F RID: 26671 RVA: 0x00117444 File Offset: 0x00115644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			num += this.pJMAHBFKHLB_.CalculateSize(HHCFGIJPHLC._repeated_pJMAHBFKHLB_codec);
			if (this.AreaGlobalId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaGlobalId);
			}
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006830 RID: 26672 RVA: 0x001174C8 File Offset: 0x001156C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HHCFGIJPHLC other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			this.pJMAHBFKHLB_.Add(other.pJMAHBFKHLB_);
			if (other.AreaGlobalId != 0U)
			{
				this.AreaGlobalId = other.AreaGlobalId;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006831 RID: 26673 RVA: 0x0011753D File Offset: 0x0011573D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006832 RID: 26674 RVA: 0x00117548 File Offset: 0x00115748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num == 24U)
					{
						this.Progress = input.ReadUInt32();
						continue;
					}
					if (num == 74U)
					{
						this.pJMAHBFKHLB_.AddEntriesFrom(ref input, HHCFGIJPHLC._repeated_pJMAHBFKHLB_codec);
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.AreaGlobalId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040027BC RID: 10172
		private static readonly MessageParser<HHCFGIJPHLC> _parser = new MessageParser<HHCFGIJPHLC>(() => new HHCFGIJPHLC());

		// Token: 0x040027BD RID: 10173
		private UnknownFieldSet _unknownFields;

		// Token: 0x040027BE RID: 10174
		public const int ProgressFieldNumber = 3;

		// Token: 0x040027BF RID: 10175
		private uint progress_;

		// Token: 0x040027C0 RID: 10176
		public const int PJMAHBFKHLBFieldNumber = 9;

		// Token: 0x040027C1 RID: 10177
		private static readonly FieldCodec<BuildAreaStep> _repeated_pJMAHBFKHLB_codec = FieldCodec.ForMessage<BuildAreaStep>(74U, BuildAreaStep.Parser);

		// Token: 0x040027C2 RID: 10178
		private readonly RepeatedField<BuildAreaStep> pJMAHBFKHLB_ = new RepeatedField<BuildAreaStep>();

		// Token: 0x040027C3 RID: 10179
		public const int AreaGlobalIdFieldNumber = 13;

		// Token: 0x040027C4 RID: 10180
		private uint areaGlobalId_;

		// Token: 0x040027C5 RID: 10181
		public const int AreaIdFieldNumber = 15;

		// Token: 0x040027C6 RID: 10182
		private uint areaId_;
	}
}
